package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Relation;

import java.util.List;

@DBMapper
public interface RelationMapper {
    int deleteByPrimaryKey(Integer rId);

    int insert(Relation record);

    int insertSelective(Relation record);

    Relation selectByPrimaryKey(Integer rId);

    int updateByPrimaryKeySelective(Relation record);

    int updateByPrimaryKey(Relation record);

    /**
     * 根据条件查询关系列表
     * @param relation
     * @return
     */
    List<Relation> selectListByCondition(Relation relation);
}